package svc

import (
	"gitee.com/yang-sunhang/weikang_api/internal/config"
	"gitee.com/yang-sunhang/weikang_rpc/weikang"
	"github.com/zeromicro/go-zero/zrpc"
)

type ServiceContext struct {
	Config config.Config
	Rpc    weikang.Weikang
}

func NewServiceContext(c config.Config) *ServiceContext {
	return &ServiceContext{
		Config: c,
		Rpc:    weikang.NewWeikang(zrpc.MustNewClient(c.Rpc)),
	}
}
